package com.monkey.model.monkey;

import com.monkey.model.user.User;

import java.text.SimpleDateFormat;
import java.util.List;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/1/13.
 */
public class MonkeyDetailData {
    private MonkeyData data;
    private int userId;
    private String userName;
    private String userHead;
    private List<MonkeyFeed> feeds;
    private List<MonkeyBonus> bonuses;
    private List<MonkeyReproduct> families;
    private List<MonkeySynthesise> synthesises;

    public MonkeyDetailData(Monkey monkey, User user, SimpleDateFormat sdf) {
        this.data = new MonkeyData(monkey, sdf);
        this.userId = monkey.getUserId();
        if (null == user) {
            this.userName = "";
            this.userHead = "";
        } else {
            this.userName = user.getName();
            this.userHead = user.getHead();
        }
        this.feeds = monkey.getFeeds();
        this.bonuses = monkey.getBonuses();
        this.families = monkey.getFamilies();
        this.synthesises = monkey.getSynthesises();
    }

    public MonkeyData getData() {
        return data;
    }

    public int getUserId() {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public String getUserHead() {
        return userHead;
    }

    public List<MonkeyFeed> getFeeds() {
        return feeds;
    }

    public List<MonkeyBonus> getBonuses() {
        return bonuses;
    }

    public List<MonkeyReproduct> getFamilies() {
        return families;
    }
    
    public List<MonkeySynthesise> getSynthesises() {
        return synthesises;
    }
}
